Attachments Section
NOTE: There are several INI settings specific to message attachments which may need to be set before attachments can be included on messages. They are:
Attachment INI Settings
|
ACCEPTABLE_ATTACHMENTS (System INI) |
Comma delimited list of acceptable attachment file extensions for users manually attaching files. e.g., .pdf, .png, .jpg, .xml, application/msword etc. Can be overridden or changed during the attachment process |
MAX_ATTACHMENTS_SIZE (System INI) | Maximum total size of attachments (in bytes). Default is 5mb (5,242,880). | |
ATTACHMENTS_LOCATION (System INI) |
The location the template specified attachments will be found in. Can be a relative or specific path. Relative paths should be used with care as they are relative to the home directory of the messaging webservices. |
There are two ways attachments can be added to messages:
- During the 'Send' process, the Attachment Tab allows browsing for and selecting file(s) to be attached to the message.
- The attachment details can be included as part of the message template.
Attachments file name(s) are detailed in between the section tags <<ATTACHMENTS:START>> and <<ATTACHMENTS:END>> will attach the file terms.pdf to the email message.
Example:
<<ATTACHMENTS:START>>
terms.pdf
<<ATTACHMENTS:END>>
Attaching files can also be located using substitution codes.
For example, if there were terms and conditions for specific agents located in folders/directories specific to the agent, then the attachments section could be:
<<ATTACHMENTS:START>>
<AC>\terms.pdf
<<ATTACHMENTS:END>>
<AC> is the substitution code for the booking agent code, so if the message was being generated for booking agent ABC123 the system would look in folder ABC123 for the file terms.pdf.
Deleting Attachements
By default, attachments can not be deleted from the message before sending. There is a :DEL parameter that can be incorporated which will allow attachment deletion:
<<ATTACHMENTS:START:DEL>>
terms.pdf
<<ATTACHMENTS:END>>
The attachment would be able to be deleted from the email message prior to sending.